{template "content","header"}
<div class="nybanner">
<img src="{IMG_PATH}nybanner.jpg">
</div>
<div class="xinwen-box">
    <div class="common-width">
        {pc:get sql="select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id=$id"}{/pc}
        <div class="xinwen wow fadeInUp">
        	<div class="xinwen-time">
                <h1>{$data[0]['title']}</h1>
               	<h2>发布时间：{date('Y-m-d',$data[0]['updatetime'])}</h2>
            </div>
            <div class="xinwen-nrxq">
            {$data[0]['content']}
            </div>
            <div id="ar_fot">
        {pc:get sql="select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id<$id order by n.id desc"}{/pc}
        {if empty($data[0])}
            <h1 class="fl"><span>上一篇：</span><a href="javascript:;">没有了</a></h1>
        {else}
            <h1 class="fl"><span>上一篇：</span><a href="{$data[0]['url']}">{$data[0]['title']}</a></h1>
        {/if}
        {pc:get sql="select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id>$id order by n.id asc"}{/pc}
        {if empty($data[0])}
            <h1 class="fr"><span>下一篇：</span><a href="javascript:;">没有了</a></h1>
        {else}
            <h1 class="fr"><span>下一篇：</span><a href="{$data[0]['url']}">{$data[0]['title']}</a></h1>
        {/if}
        <div class="clear"></div>
        <div class="bnt_box"><a href="?m=content&c=index&a=lists&catid=17" class="bnt_back">返回列表</a></div>
    </div>
        </div>
    </div>
    
</div>
{template "content","footer"}